package com.umpay.dto.merAccess.req.consume;

import com.umpay.annotation.Pattern;
import com.umpay.dto.merAccess.req.CommonReq;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * 
 * @ClassName: ConsumeH5Req  
 * @Description:  h5消费接入请求类  
 * @author zhangtao  
 * @date Mar 13, 2018
 */
public class ConsumeH5Req extends CommonReq{
	/**
	 * 联动订单号
	 */
	@NotEmpty(message = "联动订单号不能为空")
	@Pattern(message="联动订单号格式不正确")
	private String trade_no;
	/**
	 * 支付类型  WECHAT:微信    ALIPAY:支付宝
	 */
	@NotEmpty(message = "支付类型不能为空")
	private String pay_type;
	/**
	 * 订单金额
	 */
	@NotEmpty(message = "订单金额不能为空")
	@Pattern(message="订单金额格式不正确")
	private String amount;
	/**
	 * 用户ip
	 */
	@NotEmpty(message = "用户IP不能为空")
	@Pattern(message="用户IP格式不正确")
	private String user_ip;
	
	/**
	 * 商户交易流水号
	 */
	@NotEmpty(message = "商户交易流水号不能为空")
	@Pattern(message="商户交易流水号格式不正确")
	private String mer_trace;
	
	/**
	 * 后台通知地址
	 */
	@Pattern(message="后台通知地址格式不正确")
	private String notify_url;
	
	/**
	 * 前台通知地址
	 */
	@Pattern(message="前台通知地址格式不正确")
	private String ret_url;
	
	/**
	 * 备注
	 */
	@Pattern(message="备注格式不正确")
	private String remark;

	public String getTrade_no() {
		return trade_no;
	}

	public void setTrade_no(String trade_no) {
		this.trade_no = trade_no;
	}

	public String getPay_type() {
		return pay_type;
	}

	public void setPay_type(String pay_type) {
		this.pay_type = pay_type;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getUser_ip() {
		return user_ip;
	}

	public void setUser_ip(String user_ip) {
		this.user_ip = user_ip;
	}

	public String getMer_trace() {
		return mer_trace;
	}

	public void setMer_trace(String mer_trace) {
		this.mer_trace = mer_trace;
	}

	public String getNotify_url() {
		return notify_url;
	}

	public void setNotify_url(String notify_url) {
		this.notify_url = notify_url;
	}

	public String getRet_url() {
		return ret_url;
	}

	public void setRet_url(String ret_url) {
		this.ret_url = ret_url;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toString() {
		return "ConsumeH5Req [" +super.toString() 
				+ ", trade_no=" + trade_no + ", pay_type=" + pay_type + ", amount=" + amount + ", user_ip="
				+ user_ip + ", mer_trace=" + mer_trace + ", notify_url=" + notify_url + ", ret_url=" + ret_url
				+ ", remark=" + remark + ", mer_id=" + mer_id + ", version=" + version + "]";
	}
	
	
}
